import {NumberUtils, CommonUtils} from "great-jsutils";
import {HttpReponseDataType} from "../data-type/http-reponse-data.type";

export default [
    {
        url: '/api/menu/sidebar',
        method: 'get',
        response: () => {
            return HttpReponseDataType.success([
                {
                    id: CommonUtils.uuid(),
                    isGroup:true,
                    text: '代码生成器',
                    icon: 'code-outlined',
                    children: [
                        {
                            id: CommonUtils.uuid(),
                            text: '表单生成器',
                            link: '/builder/form',
                        },
                        {
                            id: CommonUtils.uuid(),
                            text: '表格生成器',
                            link: '/builder/form',
                        },
                        {
                            id: CommonUtils.uuid(),
                            text: '详情生成器',
                            link: '/builder/form',
                        },
                        {
                            id: CommonUtils.uuid(),
                            text: '大屏生成器',
                            link: '/builder/form',
                        },
                        {
                            id: CommonUtils.uuid(),
                            text: '数据库方式',
                            link: '/builder/db',
                        },
                        {
                            id: CommonUtils.uuid(),
                            text: '服务方式',
                            link: '/builder/service',
                        },
                        {
                            id: CommonUtils.uuid(),
                            text: '模板方式',
                            link: '/builder/template',
                        }
                    ]
                },
                {
                    id: CommonUtils.uuid(),
                    isGroup:true,
                    text: '用户管理',
                    icon: 'user-outlined',
                    children: [
                        {
                            id: CommonUtils.uuid(),
                            text: '组织管理',
                            link: '/builder/form',
                        },
                        {
                            id: CommonUtils.uuid(),
                            text: '用户管理',
                            link: '/builder/db',
                        },
                        {
                            id: CommonUtils.uuid(),
                            text: '角色管理',
                            link: '/builder/db',
                        },
                        {
                            id: CommonUtils.uuid(),
                            text: '权限管理',
                            link: '/builder/db',
                        }
                    ]
                },
                {
                    id: CommonUtils.uuid(),
                    isGroup:true,
                    text: '配置管理',
                    icon: 'read-outlined',
                    children: [
                        {
                            id: CommonUtils.uuid(),
                            text: '数据库信息',
                            link: '/builder/form',
                        },
                        {
                            id: CommonUtils.uuid(),
                            text: '服务信息',
                            link: '/builder/db',
                        }
                    ]
                }
            ]);
        },
    }
]
